#!/usr/bin/env fish

# 从目录中随机取一张图片
set tmp $argv

if test "$tmp" = ''
   set tmp ~/.config/sway/backgrounds/wallpapers
end

random choice $(fd . $tmp --follow -e jpg -e png)